package cn.lingyangwl.agile.member.model.rqrs.address;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 保存第三方地址请求
 *
 * @author shenguangyang
 */
@Getter
@Setter
@ApiModel(value = "保存第三方地址请求")
public class AddressSaveThirdReq {
    @ApiModelProperty(value = "会员id")
    private Long userId;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "用户姓名")
    private String name;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "联系人固定电话")
    private String telephone;

    @NotNull(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @NotNull(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "市名称")
    private String cityName;

    @NotNull(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "区县名称")
    private String regionName;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "地址信息")
    private String address;

    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "详细地址信息")
    private String fullAddress;

    @ApiModelProperty(value = "经度")
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    private Double latitude;
}
